								
var TRule = {};
var setTRule = function(name,time,userkey,schoolcode,describe,
		morninginschool1,morningoutschool1,morningabsence1,afternooninschool1,
		afternoonoutschool1,afternoonabsence1,nightinschool1,nightoutschool1,nightabsence1,
		morninginschool2,morningoutschool2,morningabsence2,afternooninschool2,
		afternoonoutschool2,afternoonabsence2,nightinschool2,nightoutschool2,nightabsence2,
		morninginschool3,morningoutschool3,morningabsence3,afternooninschool3,
		afternoonoutschool3,afternoonabsence3,nightinschool3,nightoutschool3,nightabsence3,
		morninginschool4,morningoutschool4,morningabsence4,afternooninschool4,
		afternoonoutschool4,afternoonabsence4,nightinschool4,nightoutschool4,nightabsence4,
		morninginschool5,morningoutschool5,morningabsence5,afternooninschool5,
		afternoonoutschool5,afternoonabsence5,nightinschool5,nightoutschool5,nightabsence5,
		morninginschool6,morningoutschool6,morningabsence6,afternooninschool6,
		afternoonoutschool6,afternoonabsence6,nightinschool6,nightoutschool6,nightabsence6,
		morninginschool7,morningoutschool7,morningabsence7,afternooninschool7,
		afternoonoutschool7,afternoonabsence7,nightinschool7,nightoutschool7,nightabsence7
		,remark,sendcode){

	TRule.name = name;
	TRule.time = time;
	TRule.userkey = userkey;
	TRule.schoolcode=schoolcode;
	TRule.describe = describe;
	TRule.morninginschool1 = morninginschool1;
	TRule.morningoutschool1 = morningoutschool1;
	TRule.morningabsence1 = morningabsence1;
	TRule.afternooninschool1 = afternooninschool1;
	TRule.afternoonoutschool1 = afternoonoutschool1;
	TRule.afternoonabsence1 = afternoonabsence1;
	TRule.nightinschool1 = nightinschool1;
	TRule.nightoutschool1 = nightoutschool1;
	TRule.nightabsence1 = nightabsence1;
	
	TRule.morninginschool2 = morninginschool2;
	TRule.morningoutschool2 = morningoutschool2;
	TRule.morningabsence2 = morningabsence2;
	TRule.afternooninschool2 = afternooninschool2;
	TRule.afternoonoutschool2 = afternoonoutschool2;
	TRule.afternoonabsence2 = afternoonabsence2;
	TRule.nightinschool2 = nightinschool2;
	TRule.nightoutschool2 = nightoutschool2;
	TRule.nightabsence2 = nightabsence2;
	
	TRule.morninginschool3 = morninginschool3;
	TRule.morningoutschool3 = morningoutschool3;
	TRule.morningabsence3 = morningabsence3;
	TRule.afternooninschool3 = afternooninschool3;
	TRule.afternoonoutschool3 = afternoonoutschool3;
	TRule.afternoonabsence3 = afternoonabsence3;
	TRule.nightinschool3 = nightinschool3;
	TRule.nightoutschool3 = nightoutschool3;
	TRule.nightabsence3 = nightabsence3;
	
	TRule.morninginschool4 = morninginschool4;
	TRule.morningoutschool4 = morningoutschool4;
	TRule.morningabsence4 = morningabsence4;
	TRule.afternooninschool4 = afternooninschool4;
	TRule.afternoonoutschool4 = afternoonoutschool4;
	TRule.afternoonabsence4 = afternoonabsence4;
	TRule.nightinschool4 = nightinschool4;
	TRule.nightoutschool4 = nightoutschool4;
	TRule.nightabsence4 = nightabsence4;
	
	TRule.morninginschool5 = morninginschool5;
	TRule.morningoutschool5 = morningoutschool5;
	TRule.morningabsence5 = morningabsence5;
	TRule.afternooninschool5 = afternooninschool5;
	TRule.afternoonoutschool5 = afternoonoutschool5;
	TRule.afternoonabsence5 = afternoonabsence5;
	TRule.nightinschool5 = nightinschool5;
	TRule.nightoutschool5 = nightoutschool5;
	TRule.nightabsence5 = nightabsence5;
	
	TRule.morninginschool6 = morninginschool6;
	TRule.morningoutschool6 = morningoutschool6;
	TRule.morningabsence6 = morningabsence6;
	TRule.afternooninschool6 = afternooninschool6;
	TRule.afternoonoutschool6 = afternoonoutschool6;
	TRule.afternoonabsence6 = afternoonabsence6;
	TRule.nightinschool6 = nightinschool6;
	TRule.nightoutschool6 = nightoutschool6;
	TRule.nightabsence6 = nightabsence6;
	
	TRule.morninginschool7 = morninginschool7;
	TRule.morningoutschool7 = morningoutschool7;
	TRule.morningabsence7 = morningabsence7;
	TRule.afternooninschool7 = afternooninschool7;
	TRule.afternoonoutschool7 = afternoonoutschool7;
	TRule.afternoonabsence7 = afternoonabsence7;
	TRule.nightinschool7 = nightinschool7;
	TRule.nightoutschool7 = nightoutschool7;
	TRule.nightabsence7 = nightabsence7;
	TRule.remark = remark;
	TRule.sendcode = sendcode;
};
var getTRule = function(){
	return TRule;
};